package cn.jiahua.hospital.service;


import cn.jiahua.hospital.dto.PageDepartmentDto;

import cn.jiahua.hospital.dto.TdepartmentsDto;

import cn.jiahua.hospital.pojo.Tdepartments;

import java.util.List;
import java.util.Map;

import cn.jiahua.hospital.dto.Page;
import org.apache.ibatis.annotations.Param;

/**
 * Created by shang-pc on 2015/11/7.
 */
public interface TdepartmentsService {


    public TdepartmentsDto getTdepartmentsById(Integer id);

    public List<Tdepartments> getTdepartmentsListByMap(Map<String, Object> param);

    public List<TdepartmentsDto> getTdepartmentsListByMap1(Map<String, Object> param);

    public Integer getTdepartmentsCountByMap(Map<String, Object> param);

    public Integer getTdepartmentsCountByMap1(Map<String, Object> param);

    public Integer qdtxAddTdepartments(TdepartmentsDto tdepartments);

    public Integer qdtxModifyTdepartments(TdepartmentsDto tdepartments);

    public Integer qdtxDeleteTdepartmentsById(Integer id);

    public Integer qdtxBatchDeleteTdepartments(String ids);

    public Page<Tdepartments> queryTdepartmentsPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize);

    public List<Tdepartments> getTdepartments(Integer hospitalId);


    public List<Integer> getTdepartmentsByCondition(Integer hospitalId,String tdepartmentsName)throws Exception;

    public PageDepartmentDto getPageDepartment(Integer hospitalId,Integer tdepartmentsId)throws Exception;

    public List<Tdepartments> getTdepartments1(Integer departmentsId);

    public List<Tdepartments> selectTdep(@Param(value ="hospitalId") Integer hospitalId,
                                         @Param(value = "departmentsId") Integer departmentsId);

}
